import fetch from 'utils/fetch'

export default {
  // 收藏明细
  getCollectionDetails (params) {
    return fetch.post('/pc/user/collect/list', params)
  },
  // 登陆明细
  getLoginList (params) {
    return fetch.post('/pc/user/login/record', params)
  },
  // 用户列表
  getUserList (params) {
    return fetch.post('/pc/user/list', params)
  },
  // 用户详情
  getUserDetails (params) {
    return fetch.post('/pc/user/detail', params)
  },
  // 获取购物车明细
  getShoppingCarList (params) {
    return fetch.post('/pc/user/shopCar/list', params)
  },
  // 获取点赞明细
  getlikeList (params) {
    return fetch.post('/pc/user/like/list', params)
  },
  // 获取关注明细
  getFollowList (params) {
    return fetch.post('/pc/user/attention/list', params)
  },
  // 获取用户规则
  getRulesList (params) {
    return fetch.post('/pc/user/type/list', params)
  },
  // 删除用户规则
  delRules (params) {
    return fetch.post('/pc/user/attention/list', params)
  },
  // 编辑规则
  editRules (params) {
    return fetch.post('/pc/user/type/saveOrUpdate', params)
  },
  // 默认-用户规则
  setRules (params) {
    return fetch.post('/pc/user/type/changeDefaultFlag', params)
  },
  // 获取邀请列表
  getInviteList (params) {
    return fetch.post('/pc/invited/list', params)
  },
  // 获取邀请详情
  getInviteDetails (params) {
    return fetch.post('/pc/invited/detail/list', params)
  },
  // 获取用户收货列表
  getAddressList (params) {
    return fetch.post('/pc/order/user/address/list', params)
  },
  // 获取用户心淡信息
  getOrderList (params) {
    return fetch.post('/pc/order/list', params)
  },
  // 积分列表
  getScoreList (params) {
    return fetch.post('/pc/user/integration', params)
  },
  // 积分明细列表
  getScoreDetailList (params) {
    return fetch.post('/pc/integration/detailed', params)
  },
  // 修改积分数值
  updateScore (params) {
    return fetch.post('/pc/integration/update', params)
  },
  // 积分规则
  integrationRule (params) {
    return fetch.post('/pc/integration/rule', params)
  },
  // 保存标签
  saveLabel (params) {
    return fetch.post('/pc/user/updateLabel', params)
  }
}
